/**
 * API接口统一导出
 */

import * as assignmentsApi from './assignments'
import * as bookApi from './book'
import * as classesApi from './classes'
import * as favoritesApi from './favorites'
import * as planApi from './plan'
import * as profileApi from './profile'
import * as punchApi from './punch'
import * as readingRecordsApi from './reading-records'
import * as recordApi from './record'
import * as recordingApi from './recording'
import * as recycleBinApi from './recycle-bin'
// 用户相关API
// 默认导出常用API
import * as userApi from './user'

export * from '../types/favorites'

// 我的模块类型定义导出
export * from '../types/profile'

export * from '../types/reading-records'

export * from '../types/recycle-bin'

// 绘本相关API
export * from './book'

export * from './favorites'

// 计划相关API
export * from './plan'
// 我的模块相关API
export * from './profile'
// 学习打卡相关API
export * from './punch'
export * from './reading-records'

// 阅读记录相关API
export * from './record'
// 配音管理相关API
export * from './recording'
export * from './recycle-bin'
export * from './types/book'
// 类型定义导出
export * from './types/common'
export * from './types/plan'
export * from './types/punch'

export * from './types/record'
export * from './types/recording'
export * from './types/user'
export * from './user'

export const api = {
  user: userApi,
  book: bookApi,
  plan: planApi,
  record: recordApi,
  punch: punchApi,
  recording: recordingApi,
  profile: profileApi,
  favorites: favoritesApi,
  readingRecords: readingRecordsApi,
  recycleBin: recycleBinApi,
  assignments: assignmentsApi,
  classes: classesApi,
}

export default api
